# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=py3-more-itertools
_pkgname=more-itertools
pkgver=10.1.0
pkgrel=0
pkgdesc="More routines for operating on iterables, beyond itertools"
url="https://github.com/more-itertools/more-itertools"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-flit-core py3-wheel py3-installer"
subpackages="$pkgname-pyc"
source="https://github.com/more-itertools/more-itertools/archive/v$pkgver/more-itertools-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-more-itertools" # Backwards compatibility
provides="py-more-itertools=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
7a8a4e2688c0affab063a225984b2668bbb92a9193ef889ee58fed6a4f7d55288f4ec3f2e040e2721dd3bf7d5d4b01845cd4006a97898ec38dc1c9b512d7faa5  more-itertools-10.1.0.tar.gz
"
